#include "ShareMem.hpp"
#include <unistd.h>
int main()
{
    // 1.申请共享内存
    ShareMem shm(SERVER);
    char *str = (char *)shm.getStart();

    // 2.接收client发送过来的消息
    int n = 50;
    while (n--)
    {
        cout << "client:: " << str << endl;
        sleep(1);
    }

    return 0;
}